import scrapy


class WallpaperSpider(scrapy.Spider):
    name = "wallpaper"
    allowed_domains = ["desk.duba.com"]
    start_urls = ["https://desk.duba.com"]

    def parse(self, response):
        img_url = response.xpath('//div[starts-with(@class,"main-slide")]/img/@src').getall()
        yield {
            'image_urls': img_url
        }
